package com.jcl.traffic.system.rest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jcl_hqu
 * @date 2020/11/23 17:15
 */

@Controller
public class Test {
    @GetMapping("admin/login")
    public String login(){
        return "login";
    }
    @GetMapping("admin/index")
    public String index(){
        return "index";
    }
    @GetMapping("admin/error/404")
    public String error(){
        return "error/404";
    }
   @GetMapping("admin/addBreakRules")
    public String AddDoc(){
        return "add_doc";
   }

    @GetMapping("admin/BreakRules")
    public String list(){
        return "redirect:BreakRules/list";
    }

}